package main

// go mod init jdzPackage
// go mod tidy
import (
	"fmt"
	"github.com/shopspring/decimal"
	calc "jdzPackage/07-package/calc"
)

// 最后导入的包会最先初始化并调用其 init() 函数
func init() {
	fmt.Println("init() in main package")
}

func main() {
	t := calc.Add(10, 20)
	fmt.Println(t)
	price, err := decimal.NewFromString("123.456")
	if err != nil {
		panic(err)
	}
	fmt.Println(price)
}
